/* 豆瓣刮削页面特定样式 */

/* 搜索区域 */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.search-button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* 搜索结果卡片 */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.movie-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.movie-poster-container {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.movie-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-rating {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: #3b82f6;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
}

.movie-info {
    padding: 0.75rem;
}

/* 电影详情区域 */
.movie-detail-container {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.movie-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .movie-detail-grid {
        grid-template-columns: 1fr 3fr;
    }
}

.movie-detail-poster {
    width: 100%;
    max-width: 280px;
    border-radius: 0.5rem;
}

.movie-title-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.movie-main-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.movie-original-title {
    color: #6b7280;
    font-size: 0.875rem;
}

.movie-detail-rating {
    background-color: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.movie-tag {
    background-color: #dbeafe;
    color: #1e40af;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.movie-info-item {
    margin-bottom: 0.75rem;
}

.movie-info-label {
    font-weight: 500;
    color: #4b5563;
    margin-right: 0.5rem;
}

.movie-summary {
    margin: 1.5rem 0;
    line-height: 1.6;
    color: #4b5563;
}

.movie-actors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.movie-actor-tag {
    background-color: #f3f4f6;
    color: #4b5563;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* 按钮样式 */
.btn-primary {
    background-color: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #059669;
}

.btn-secondary {
    background-color: #e5e7eb;
    color: #4b5563;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #d1d5db;
}

/* 加载状态 */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* 返回顶部按钮 */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #3b82f6;
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.scroll-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-to-top:hover {
    background-color: #2563eb;
    transform: translateY(-3px);
}